
//=点击展开关闭效果=
function openShutManager(oSourceObj,oTargetObj,shutAble,oOpenTip,oShutTip){
var sourceObj = typeof oSourceObj == "string" ? document.getElementById(oSourceObj) : oSourceObj;
var targetObj = typeof oTargetObj == "string" ? document.getElementById(oTargetObj) : oTargetObj;
var openTip = oOpenTip || "";
var shutTip = oShutTip || "";
if(targetObj.style.display!="none"){
   if(shutAble) return;
   targetObj.style.display="none";
   if(openTip  &&  shutTip){
    sourceObj.innerHTML = shutTip; 
   }
} else {
   targetObj.style.display="block";
   if(openTip  &&  shutTip){
    sourceObj.innerHTML = openTip; 
   }
}
}



$(document).ready(function() {
	var aMenuOneLi = $(".menu-one > li");
	var aMenuTwo = $(".menu-two");
	$(".menu-one > li > .menu-header").each(function(i) {
		$(this).click(function() {
			if ($(aMenuTwo[i]).css("display") == "block") {
				$(aMenuTwo[i]).slideUp(300);
				$(aMenuOneLi[i]).removeClass("menu-show")
			} else {
				for (var j = 0; j < aMenuTwo.length; j++) {
					$(aMenuTwo[j]).slideUp(300);
					$(aMenuOneLi[j]).removeClass("menu-show")
				}
				$(aMenuTwo[i]).slideDown(300);
				$(aMenuOneLi[i]).addClass("menu-show")
			}
		})
	})
});


